package com.faithbj.process;

import com.faithbj.common.model.CheckTotal;
import com.google.common.base.Function;

import java.io.Serializable;
import java.util.Map;

/**
* User: xiongyuanwei
* Date: 12-7-18
* Time: 下午11:59
*/
public class CheckTotalExtractor implements Function<Map<String, Object>, CheckTotal>, Serializable {

    private static CheckTotalExtractor instance = new CheckTotalExtractor();

    CheckTotalExtractor() {

    }

    public static CheckTotalExtractor getInstance() {
        return instance;
    }

    @Override
    public CheckTotal apply(Map<String, Object> content) {
        return (CheckTotal) content.get("checkTotal");
    }
}
